<include file="Public:head" />{$keshow}
</head>
<body>
<include file="Public:top" />
<div id="main">
  <div class="main-con">
    <div class="col-box col-sub">
      <h3><span>常用操作</span></h3>
      <ul>
        <li><a href="__APP__/User/arc_add.html">发布内容</a></li>
        <li class="focus"><i></i><a href="__APP__/User/cat.html">栏目管理</a></li>
        <li ><i></i><a href="__URL__/logout.html">退出</a></li>
      </ul>
    </div>
    <div class="col-box col-main">
      <h3><span class="fl">栏目管理</span></h3>
      <div class="content">
<style type="text/css">
	.list{border:1px solid #CCC;}
	.list th,.list td{border:1px solid #CCC;}
</style>
      	<table width="100%" class="list">
        	<tr>
            	<th width="50">ID</th>
                <th>栏目名称</th>
                <th width="50">排序</th>
                <th width="150">操作</th>
            </tr>
<volist name="list" id="c">
			<tr>
            	<td>{$c['id']}</td>
                <td>{$c['type_name']}</td>
                <td>{$c['order']}</td>
                <td><a href="__URL__/cat/act/edit/id/{$c['id']}">编辑</a>  |  <a href="__URL__/cat/act/del/id/{$c['id']}">删除</a>  |  <a href="__URL__/arc_add/cid/{$c['id']}">发布内容</a></td>
            </tr>
</volist>
        </table>
      <hr>
        <form action="__URL__/cat" method="post">
          <if condition="$info['id']">
            <input type="hidden" name="id" value="{$info['id']}"/>
            <input type="hidden" name="act" value="update" />
          <else/>
          	<input type="hidden" name="act" value="add" />
          </if>
          <p>
            <label for="pid">父栏目:</label>
            <select id="pid" name="pid">
            <option value="0"{:arrayischk(0,$info['pid'],'selected')}>---根目录/顶级目录---</option>
            <volist name="list" id="v">
            <option value="{$v['id']}"{:arrayischk($v['id'],$info['pid'],'selected')}>{$v['type_name']}</option>
            </volist>
            </select>
          </p>
          <p>
            <label for="title">标&nbsp;&nbsp;&nbsp;题:</label>
            <input id="title" name="type_name" type="text" value="{$info['type_name']}">
          </p>
          <p>
            <label for="order">排&nbsp;&nbsp;&nbsp;序:</label>
            <input id="order" name="order" type="text" value="{$info['order']}">
          </p>
		  <p>
          	<label for="about">摘&nbsp;&nbsp;&nbsp;要:</label><br />
            <textarea id="about" name="about" cols="85" rows="8">{$info['about']}</textarea>
          </p>
          <p>
            <input type="submit" value="提  交">    
            <input type="button" onClick="window.location.href='__APP__/User/cat'" value="取  消">
          </p>
        </form>
      </div>
    </div>
  </div>
</div>
<include file="Public:foot" /> 